# 文件名: config.py

# 阿里云百炼 API 配置   (通义千问qwen-vl-72b用的也是这也API-KEY)
APP_ID = "mm_52996d59cc264ec59bfba8b8a0f9"
WORKSPACE_ID = "llm-4vhlkqmc2grqrh1i"
API_KEY = "sk-7c3526866e1d4d7a8e28634c61ac9490"
WEBSOCKET_URL = "wss://dashscope.aliyuncs.com/api-ws/v1/inference"
MODEL_NAME = "multimodal-dialog"

API_KEY2 = "sk-ef397650d3a048d6a25a762783a45322" #第二次模型api-key

# 语音配置
VOICE_NAME = "longxiaochun_v2"
SAMPLE_RATE = 16000
SAMPLE_WIDTH = 2
CHANNELS = 1
AUDIO_FRAME_SIZE = 640

# Piper 配置
CAN = "can0"  # 机械臂can

# 摄像头配置
# Windows和Ubuntu系统下相机索引可能不同
import sys
if sys.platform == "win32":  # Windows系统
    CAMERA_INDEX = 1  # Windows下通常为1或0
else:  # Linux/Ubuntu系统
    CAMERA_INDEX = 0  # Ubuntu下通常为0